import java.io.*;
import java.util.zip.*;
public class Testreader {

	public static void main(String[] args)throws Exception {
		FileInputStream fis = new FileInputStream("D:\\zym.zip");
		ZipInputStream zis = new ZipInputStream(fis);
		FileOutputStream fos = new FileOutputStream("D:\\zym.txt");
		ZipEntry ze = zis.getNextEntry();
		System.out.println(ze.getName());
		int val;
		while((val = zis.read()) != -1)
		{
			fos.write(val);
		}
		fos.close();
		zis.close();
	}

}
